package com.example.decorator;

import java.math.BigDecimal;

/**
 * Created by fongjx on 2021/6/25.
*/
public class TireBikeDecorator extends BikeDecorator{


    public TireBikeDecorator(Bike bike) {
        super(bike);
    }

    private String desc = "改造轮胎";

    @Override
    public String getDesc() {
        return super.getDesc() + ";" + desc;
    }

    @Override
    public BigDecimal getPrice() {
        return super.getPrice().add(BigDecimal.valueOf(10));
    }
}
